<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

    <title>H+ 后台主题UI框架 - 登录</title>
    <meta name="keywords" content="H+后台主题,后台bootstrap框架,会员中心主题,后台HTML,响应式后台">
    <meta name="description" content="H+是一个完全响应式，基于Bootstrap3最新版本开发的扁平化主题，她采用了主流的左右两栏式布局，使用了Html5+CSS3等现代技术">
    <link href="/admin/css/bootstrap.min.css" rel="stylesheet">
    <link href="/admin/css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="/admin/css/animate.css" rel="stylesheet">
    <link href="/admin/css/style.css" rel="stylesheet">
    <link href="/admin/css/login.css" rel="stylesheet">
    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html" />
    <![endif]-->
    <script>
        if (window.top !== window.self) {
            window.top.location = window.location;
        }
    </script>

</head>

<body class="signin">
    <div class="signinpanel">
        <div class="row">
            <div class="col-sm-7">
                <div class="signin-info">
                    <div class="logopanel m-b">
                        <h1>[ H+ ]</h1>
                    </div>
                    <div class="m-b"></div>
                    <h4>欢迎使用 <strong>H+ 后台主题UI框架</strong></h4>
                    <ul class="m-b">
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势一</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势二</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势三</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势四</li>
                        <li><i class="fa fa-arrow-circle-o-right m-r-xs"></i> 优势五</li>
                    </ul>
                </div>
            </div>
            <div class="col-sm-5">
                <h4 class="no-margins">登录：</h4>
                <p class="m-t-md">登录到H+后台主题UI框架</p>
                <input type="text" class="form-control uname" name="username" id="yonghu" placeholder="用户名" />
                <input type="password" class="form-control pword m-b" id="mima" name="password" placeholder="密码" />
                <button class="btn btn-success btn-block" id='deng'>登录</button>
            </div>
        </div>
        <div class="signup-footer">
            <div class="pull-left">
                &copy; 2015 All Rights Reserved. H+
            </div>
        </div>
    </div>
    <script src="/admin/js/jquery.min.js?v=2.1.4"></script>
    <script src="/admin/js/layer.js"></script>
    <script>
        $("#deng").click( function () {
            var yonghu = $('#yonghu').val();
            var mima = $('#mima').val();
            // alert(mima);
            $.ajax({
                url:"/admin/login1",
                type:"GET",
                data:{"yonghu":yonghu,"mima":mima},
                success:function(data){
                    console.log(data);
                    if(data == 1){
                        window.location.href="/admin/a";
                    }else if(data==2){
                        layer.msg('密码错误', {shift: 6});
                    }else if(data==3){
                        layer.msg('该账号已被禁止登录', {shift: 6});
                    }else if(data==0){
                        layer.msg('该账号不存在', {shift: 6});
                    }
                }
            }).fail(function(data){
                console.log(data);
            })
        });
    </script>
</body>

</html>
